﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace Dapper_Core.Table
{
    public class AgentSamAccount
    {
        /// <summary>
        /// Guid主键，主键必须加[Key]特性，若想对名为Id的列赋值必须加[Required]特性
        /// </summary>
        [Key]
        [Required]
        public string Id { get; set; }
        /// <summary>
        /// 代表处
        /// </summary>
        public string RepresentativeOffice { get; set; }
        /// <summary>
        /// 办事处
        /// </summary>
        public string Office { get; set; }
        /// <summary>
        /// 城市
        /// </summary>
        public string City { get; set; }
        /// <summary>
        /// 域账号
        /// </summary>
        public string SamAccount { get; set; }
        /// <summary>
        /// 密码
        /// </summary>
        public string Password { get; set; }
        /// <summary>
        /// 代理商编码
        /// </summary>
        public string AgentCode { get; set; }
        /// <summary>
        /// 代理商名称
        /// </summary>
        public string AgentName { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Remarks { get; set; }
        /// <summary>
        /// submitted,generated,error
        /// </summary>
        public string State { get; set; }
        public int IsDeleted { get; set; }
        public string Creator { get; set; }
        public DateTime? CreateDate { get; set; }
        public string Modifier { get; set; }
        public DateTime? ModifyDate { get; set; }
        [Editable(false)]
        public DateTime? CreateDateEnd { get; set; }
    }
}
